package com.beta.dto.admin;

import com.beta.em.UserType;
import com.beta.em.order.OrderMode;
import com.beta.em.order.OrderStatus;
import com.beta.em.order.PayMode;
import com.beta.em.order.PayStatus;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by lichao on 2017/1/23.
 */
@Getter
@Setter
public class OrderDetailDto implements Serializable {
    private static final long serialVersionUID = 3652322041986127738L;
    private String username;
    private String phone;
    private String userType;
    private String cityName;
    private String code;
    private String mode;
    private String status;
    private String payMode;
    private String payStatus;
    public String getUserTypeText(){
        return UserType.getCnValue(this.userType);
    }
    public String getModeText(){
        return OrderMode.getOrderMode(this.mode).getCnValue();
    }
    public String getStatusText(){
        return OrderStatus.getCnValue(this.status);
    }
    public String getPayModeText(){
        return PayMode.getPayMode(this.payMode).getCnValue();
    }
    public String getPayStatusText(){
        return PayStatus.getCnValue(this.payStatus);
    }
}
